package com.ruoyi.major.service;

import com.ruoyi.major.domain.StuMagor;

import java.util.List;

public interface IStuMagorService {
    /**
     * 查询所有专业
     * @param stuMagor
     * @return
     */
    public List<StuMagor> selectMagorList(StuMagor stuMagor);

    /**
     * 添加专业
     */
    public int insertMagor(StuMagor stuMagor);


    /**
     * 校验专业名称
     * @param stuMagor
     * @return
     */
    String checkMajorNameUnique(StuMagor stuMagor);

    /**修改专业
     *
     */
    public int updateMagor(StuMagor stuMagor);

    /**
     * 根据id查询专业
     */
     StuMagor selectMagorById(Long magId);

    /**
     * 根据id删除专业
     */
    int deleteMagorById(Long magId);

    /**
     * 批量删除专业
     */
    int deleteMagorByIds(Long[] magIds);


    List<StuMagor> selectAllMagorList();

    List<Long> selectMagorByCourId(Long courId);
}
